home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
makemdi2.zip
/
MAKEMDI.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-11-25
|
2KB
|
69 lines
@echo off
set dstdir=%1
set file=%2
set class=%3
if "%dstdir%"=="" goto help
if "%file%"=="" goto help
if "%class%"=="" goto help
if not exist .\makemdi.rc goto help
goto gotparms
:help
echo.
echo MAKEMDI - Generic Windows MDI Application Generator
echo.
echo Usage: makemdi destdir filename ClassName
echo.
echo Example: makemdi c:\myapp test Test
echo nmake
echo.
echo Must be run from MAKEMDI directory.
echo.
goto exit
:gotparms
echo.
echo Creating %class% application in %dstdir%...
if exist %dstdir% goto nomkdir
mkdir %dstdir%
:nomkdir
call makemdi2 makefile %dstdir%\makefile %file% %class%
call makemdi2 makemdi.rc %dstdir%\%file%.rc %file% %class%
call makemdi2 app.rc %dstdir%\app.rc %file% %class%
call makemdi2 frame.rc %dstdir%\frame.rc %file% %class%
call makemdi2 ribbon.rc %dstdir%\ribbon.rc %file% %class%
call makemdi2 chart.rc %dstdir%\chart.rc %file% %class%
call makemdi2 sheet.rc %dstdir%\sheet.rc %file% %class%
copy makemdi.ico %dstdir%\%file%.ico >nul
copy chart.ico %dstdir%\chart.ico >nul
copy sheet.ico %dstdir%\sheet.ico >nul
call makemdi2 makemdi.def %dstdir%\%file%.def %file% %class%
call makemdi2 makemdi.h %dstdir%\%file%.h %file% %class%
call makemdi2 makemdi.c %dstdir%\%file%.c %file% %class%
call makemdi2 resource.h %dstdir%\resource.h %file% %class%
call makemdi2 app.c %dstdir%\app.c %file% %class%
call makemdi2 app.h %dstdir%\app.h %file% %class%
call makemdi2 frame.c %dstdir%\frame.c %file% %class%
call makemdi2 frame.h %dstdir%\frame.h %file% %class%
call makemdi2 client.c %dstdir%\client.c %file% %class%
call makemdi2 client.h %dstdir%\client.h %file% %class%
call makemdi2 ribbon.c %dstdir%\ribbon.c %file% %class%
call makemdi2 ribbon.h %dstdir%\ribbon.h %file% %class%
call makemdi2 chart.c %dstdir%\chart.c %file% %class%
call makemdi2 chart.h %dstdir%\chart.h %file% %class%
call makemdi2 sheet.c %dstdir%\sheet.c %file% %class%
call makemdi2 sheet.h %dstdir%\sheet.h %file% %class%
echo.
echo Done!
echo.
echo Type nmake to create %file%.exe
echo.
cd %1
:exit
set dstdir=
set file=
set class=
set copyr=